package analyser;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import collector.Collector;

@Component
public class FactorAnalyser implements Analyser{
//	@Autowired
//	@Qualifier(value="netCollector")
	@Resource(name="usbCollector")
	private Collector collector;
	
	@Override
	public void analyse() {
		collector.collect();
		System.out.println("factor analysing...");
	}
	
	public void setCollector(Collector collector){
		this.collector = collector;
	}
}
